﻿@model SRF.Admin.Models.User 
@{
    Layout = "~/Views/Shared/_ViewDialog.cshtml";  
}
@using SRF.UI.Html
@section header{
}
@using (Html.BeginForm("", "", FormMethod.Get, new { @class = "form-horizontal" }))
{   
    @Html.HiddenFor(m => m.Id) 
    <table>
        <tr>
            <td>
                <label class="control-label">
                    登录名:</label>
                <span class="display-label">@Html.TextFor(m => m.LoginId)</span>
            </td>
            <td>
                <label class="control-label">
                    有效:</label>
                <span class="display-label">
                    @Html.TextFor(m => m.Enabled, a => a ? "是" : "否")</span>
            </td>
        </tr>
        <tr>
            <td>
                <label class="control-label">
                    姓名:</label>
                <span class="display-label">@Html.TextFor(m => m.Name)</span>
            </td>
            <td>
                <label class="control-label">
                    性别:</label>
                <span class="display-label">@Html.EnumTextFor(m => m.Sex)</span>
            </td>
        </tr>
        <tr>
            <td>
                <label class="control-label">
                    邮件:</label>
                <span class="display-label">@Html.TextFor(m => m.Email)</span>
            </td>
            <td>
                <label class="control-label">
                    电话:</label>
                <span class="display-label">@Html.TextFor(m => m.Phone)</span>
            </td>
        </tr>
        <tr>
            <td>
                <label class="control-label">
                    IM:</label>
                <span class="display-label">@Html.TextFor(m => m.IM)</span>
            </td>
            <td style="width: 300px">
                <label class="control-label">
                    部门:</label>
                <span class="display-label">@Html.TextFor(m => m.Department)</span>
            </td>
        </tr>
    </table> 
    <p>
        @Html.SelectorFor(m => m.Roles, "选择角色", ViewBag.RoleList as IEnumerable<SelectListItem>, true)</p>
}